﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DE7 RID: 3559
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RefreshTriggerByClientCsReq : IMessage<RefreshTriggerByClientCsReq>, IMessage, IEquatable<RefreshTriggerByClientCsReq>, IDeepCloneable<RefreshTriggerByClientCsReq>, IBufferMessage
	{
		// Token: 0x17002D22 RID: 11554
		// (get) Token: 0x06009F9F RID: 40863 RVA: 0x001AA87B File Offset: 0x001A8A7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RefreshTriggerByClientCsReq> Parser
		{
			get
			{
				return RefreshTriggerByClientCsReq._parser;
			}
		}

		// Token: 0x17002D23 RID: 11555
		// (get) Token: 0x06009FA0 RID: 40864 RVA: 0x001AA882 File Offset: 0x001A8A82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RefreshTriggerByClientCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002D24 RID: 11556
		// (get) Token: 0x06009FA1 RID: 40865 RVA: 0x001AA894 File Offset: 0x001A8A94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RefreshTriggerByClientCsReq.Descriptor;
			}
		}

		// Token: 0x06009FA2 RID: 40866 RVA: 0x001AA89B File Offset: 0x001A8A9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RefreshTriggerByClientCsReq()
		{
		}

		// Token: 0x06009FA3 RID: 40867 RVA: 0x001AA8BC File Offset: 0x001A8ABC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RefreshTriggerByClientCsReq(RefreshTriggerByClientCsReq other) : this()
		{
			this.triggerName_ = other.triggerName_;
			this.triggerEntityId_ = other.triggerEntityId_;
			this.triggerTargetIdList_ = other.triggerTargetIdList_.Clone();
			this.triggerMotion_ = ((other.triggerMotion_ != null) ? other.triggerMotion_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009FA4 RID: 40868 RVA: 0x001AA925 File Offset: 0x001A8B25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RefreshTriggerByClientCsReq Clone()
		{
			return new RefreshTriggerByClientCsReq(this);
		}

		// Token: 0x17002D25 RID: 11557
		// (get) Token: 0x06009FA5 RID: 40869 RVA: 0x001AA92D File Offset: 0x001A8B2D
		// (set) Token: 0x06009FA6 RID: 40870 RVA: 0x001AA935 File Offset: 0x001A8B35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string TriggerName
		{
			get
			{
				return this.triggerName_;
			}
			set
			{
				this.triggerName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17002D26 RID: 11558
		// (get) Token: 0x06009FA7 RID: 40871 RVA: 0x001AA948 File Offset: 0x001A8B48
		// (set) Token: 0x06009FA8 RID: 40872 RVA: 0x001AA950 File Offset: 0x001A8B50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TriggerEntityId
		{
			get
			{
				return this.triggerEntityId_;
			}
			set
			{
				this.triggerEntityId_ = value;
			}
		}

		// Token: 0x17002D27 RID: 11559
		// (get) Token: 0x06009FA9 RID: 40873 RVA: 0x001AA959 File Offset: 0x001A8B59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TriggerTargetIdList
		{
			get
			{
				return this.triggerTargetIdList_;
			}
		}

		// Token: 0x17002D28 RID: 11560
		// (get) Token: 0x06009FAA RID: 40874 RVA: 0x001AA961 File Offset: 0x001A8B61
		// (set) Token: 0x06009FAB RID: 40875 RVA: 0x001AA969 File Offset: 0x001A8B69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo TriggerMotion
		{
			get
			{
				return this.triggerMotion_;
			}
			set
			{
				this.triggerMotion_ = value;
			}
		}

		// Token: 0x06009FAC RID: 40876 RVA: 0x001AA972 File Offset: 0x001A8B72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RefreshTriggerByClientCsReq);
		}

		// Token: 0x06009FAD RID: 40877 RVA: 0x001AA980 File Offset: 0x001A8B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RefreshTriggerByClientCsReq other)
		{
			return other != null && (other == this || (!(this.TriggerName != other.TriggerName) && this.TriggerEntityId == other.TriggerEntityId && this.triggerTargetIdList_.Equals(other.triggerTargetIdList_) && object.Equals(this.TriggerMotion, other.TriggerMotion) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009FAE RID: 40878 RVA: 0x001AA9F8 File Offset: 0x001A8BF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TriggerName.Length != 0)
			{
				num ^= this.TriggerName.GetHashCode();
			}
			if (this.TriggerEntityId != 0U)
			{
				num ^= this.TriggerEntityId.GetHashCode();
			}
			num ^= this.triggerTargetIdList_.GetHashCode();
			if (this.triggerMotion_ != null)
			{
				num ^= this.TriggerMotion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009FAF RID: 40879 RVA: 0x001AAA76 File Offset: 0x001A8C76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009FB0 RID: 40880 RVA: 0x001AAA7E File Offset: 0x001A8C7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009FB1 RID: 40881 RVA: 0x001AAA88 File Offset: 0x001A8C88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.triggerMotion_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.TriggerMotion);
			}
			if (this.TriggerName.Length != 0)
			{
				output.WriteRawTag(98);
				output.WriteString(this.TriggerName);
			}
			this.triggerTargetIdList_.WriteTo(ref output, RefreshTriggerByClientCsReq._repeated_triggerTargetIdList_codec);
			if (this.TriggerEntityId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.TriggerEntityId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009FB2 RID: 40882 RVA: 0x001AAB14 File Offset: 0x001A8D14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TriggerName.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.TriggerName);
			}
			if (this.TriggerEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TriggerEntityId);
			}
			num += this.triggerTargetIdList_.CalculateSize(RefreshTriggerByClientCsReq._repeated_triggerTargetIdList_codec);
			if (this.triggerMotion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TriggerMotion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009FB3 RID: 40883 RVA: 0x001AAB9C File Offset: 0x001A8D9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RefreshTriggerByClientCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TriggerName.Length != 0)
			{
				this.TriggerName = other.TriggerName;
			}
			if (other.TriggerEntityId != 0U)
			{
				this.TriggerEntityId = other.TriggerEntityId;
			}
			this.triggerTargetIdList_.Add(other.triggerTargetIdList_);
			if (other.triggerMotion_ != null)
			{
				if (this.triggerMotion_ == null)
				{
					this.TriggerMotion = new MotionInfo();
				}
				this.TriggerMotion.MergeFrom(other.TriggerMotion);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009FB4 RID: 40884 RVA: 0x001AAC2E File Offset: 0x001A8E2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009FB5 RID: 40885 RVA: 0x001AAC38 File Offset: 0x001A8E38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 98U)
				{
					if (num == 74U)
					{
						if (this.triggerMotion_ == null)
						{
							this.TriggerMotion = new MotionInfo();
						}
						input.ReadMessage(this.TriggerMotion);
						continue;
					}
					if (num == 98U)
					{
						this.TriggerName = input.ReadString();
						continue;
					}
				}
				else
				{
					if (num == 104U || num == 106U)
					{
						this.triggerTargetIdList_.AddEntriesFrom(ref input, RefreshTriggerByClientCsReq._repeated_triggerTargetIdList_codec);
						continue;
					}
					if (num == 120U)
					{
						this.TriggerEntityId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003D85 RID: 15749
		private static readonly MessageParser<RefreshTriggerByClientCsReq> _parser = new MessageParser<RefreshTriggerByClientCsReq>(() => new RefreshTriggerByClientCsReq());

		// Token: 0x04003D86 RID: 15750
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D87 RID: 15751
		public const int TriggerNameFieldNumber = 12;

		// Token: 0x04003D88 RID: 15752
		private string triggerName_ = "";

		// Token: 0x04003D89 RID: 15753
		public const int TriggerEntityIdFieldNumber = 15;

		// Token: 0x04003D8A RID: 15754
		private uint triggerEntityId_;

		// Token: 0x04003D8B RID: 15755
		public const int TriggerTargetIdListFieldNumber = 13;

		// Token: 0x04003D8C RID: 15756
		private static readonly FieldCodec<uint> _repeated_triggerTargetIdList_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x04003D8D RID: 15757
		private readonly RepeatedField<uint> triggerTargetIdList_ = new RepeatedField<uint>();

		// Token: 0x04003D8E RID: 15758
		public const int TriggerMotionFieldNumber = 9;

		// Token: 0x04003D8F RID: 15759
		private MotionInfo triggerMotion_;
	}
}
